NIELIT O Level Exam

Which of the following will never be displayed on executing print(random.choice({0: 1, 2: 3}))?

Which of the following will never be displayed on executing print(random.choice({0: 1, 2: 3}))?

निम्नलिखित में से कौन सा प्रिंट निष्पादित करने पर कभी प्रदर्शित नहीं होगा (random.choice ({0: 1, 2: 3}))?

A. 0

B. 1

C. KeyError: 1

D. none of the mentioned उल्लेखित कोई नहीं




Correct Answer is :

A. 0



Explanation
It will not print 0 but dict[0] i.e. 1 may be printed.
Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad